package com.belazy.business.app.common;

import com.belazy.library.util.log.ConsoleUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;

/**
 * @Description <p> TODO </p>
 * @Author chupeng.tang
 * @CreateTime 2023/5/19 17:29
 * @Version 1.0
 */
@EnableDiscoveryClient
@SpringBootApplication
@EnableFeignClients(basePackages = {"com.belazy.business"})
@ComponentScan(basePackages = {"com.belazy"})
@MapperScan("com.belazy.business.app.common.mapper")
public class CommonRunApplication {
    public static void main(String[] args)  {
        ApplicationContext applicationContext = SpringApplication.run (CommonRunApplication.class, args);
        ConsoleUtil.startBusinessServerLog (applicationContext);
    }
}
